home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
351-375
/
disk_353
/
northc
/
northc1.lzh
/
CONTENTS
< prev
next >
Wrap
Text File
|
1990-05-01
|
9KB
|
299 lines
NorthC 1.1 provides an selection of programs, documentation and examples, if
your version does not contain all the following you should complain to the
person you got it from.
hello.doc
A quick introduction to 'C' under NorthC, read this if you have never
used 'C' before. Also because this takes you through the steps for
producing programs under "NorthC:" it might even be worth looking at if
you are converting from another system.
setup-NorthC
A script file to set the path and create a logical device "clibs:" you
should run this each time you use NorthC. This script file runs
"Single-Disk", "Dual-Disk" or "Hard-Disk" depending on your system. You
will have to edit the file to tell it what type of system you have.
Single-disk
A script file to set up an unexpanded Amiga 500 to compile the "Hello
World" program, after you have used it once you should go out and buy a
second drive then use "setup-NorthC".
Dual-Disk
A script file to set up NorthC on an Amiga with a second floppy drive,
once you are familiar with the system you will probably want to configure
your system slightly differently. Normally I put the "NorthC", "A68K",
"Blink" and "make" programs in the "c:" directory of a cut down system
disk, for example.
Hard-Disk
A script file to set up NorthC on an Amiga with a hard disk, look at the
file in an editor before you run it! I have not got a hard disk so this is
just a guess of what you might want to do, well if you can afford a Hard
disk you should know enough to set it up.
README
A quick introduction to the astounding bonuses of using the best value
for money 'C' compiler for the Amiga.
CONTENTS
A list of the contents of the "NorthC:" disk, this file in fact.
tools/ar.c tools/cc.c tools/ar.blink tools/cc.blink tools/Makefile
The source files for the ar and cc programs, the command "make" will
recompile these files for you. These are here mainly as examples that are
garenteed to compile with NorthC. Also cc.c is a good program to hack
about a bit if you want to change your top level interface.
libs
The 'C' library files, this directory contains the files NorthC requires
for the standard library and the startup routines. The files in this
directory are listed below.
libs/libc.doc
Documentation on the 'C' library routines currently implemented in the
'C' library. This document should be printed out and often refered to.
libs/clibdefs.i
Some macros to use in assembler routines, these are specifically made
to suit my programming style, feel free to steal any ideas you think are
usefull.
libs/dos.i
A list of the standard AmigaDOS library offsets, this list does not match
the latest release of the operating system. You will only need to use
this file when calling the operating system from assembler.
libs/libc.a
The standard 'C' library, the functions in this library attempt to follow
the ANSI standard, see "libc.doc" for a list of the functions implemented.
The maths routines use Motorola Fast Floating Point format, the "double"
data format in NorthC is 32 bits.
libs/crt0.o
The startup routine, this will load up the libraries, open a console,
and generally do the things startup routines are supposed to. Examine the
source code for details of what it does.
libs/crt0.asm
The source for the startup routine, alter this if you do not like the
startup, but remember to note the fact in the file. It is important that
you call "__main" not "_main" otherwise some things will not be
initialised correctly.
libs/AmigaDOS.doc
This file lists the AmigaDOS routines that the 'C' library supports, the
main bulk of this file was generated from the 1.3 ".fd" files on the
system disk.
bin
This directory contains the compiler, assembler, linker and front end
for NorthC, these mostly come from other people see the documentation for
the sources.
bin/NorthC
The compiler, this will translate 'C' source into assembler files.
Read the file "bugs.doc" to find details of the current release.
bin/a68k bin/A68k.doc
The assembler from Charlie Gibbs, again the doc file gives more details.
This translates assembler files into object files.
bin/Blink bin/Blink.doc
The linker from "The Software Distillary", see the doc file for details.
This combines object files and libraries to produce executable programs.
bin/Bugs.doc
A list of known bugs in this version of NorthC, this includes work
arounds for many of the bugs. It is important to read this document when
you find your program not behaving as it should.
bin/make bin/make.doc
The make program, I have supported the basic elements of "make" but some
elements, such as variables, are missing.
bin/cc bin/cc.doc
The front end, this will control the compiler assembler and linker. This
program loosly follows the normal UNIX conventions, however it needs to be
hacked before it does everything you will need.
bin/ar
The library creator, note this takes a very simple view of creating
libraries, it just concatenates files together. See the tools directory
to examine the source.
bin/CHANGES
This file lists the changes that have been made to NorthC in each release,
it will be of most use if you are updating an old NorthC disk.
include
This directory contains the "include" files, these are accessed by a line
in the code such as
#include <stdio.h>
the '<' and '>' indicate that the file is to be found in the include
directory. The compiler automatically looks in the ":include" directory
for the include files, if you want it to look elsewhere change the
"INCLUDE" environment variable.
include/string.h include/ctype.h include/stdarg.h include/assert.h
include/stddef.h include/stdio.h include/errno.h include/macros.h
include/setjmp.h include/limits.h include/time.h include/stdlib.h
include/types.h include/math.h
The standard 'C' include files, this set comes originally from the
Sozobon 'C' compiler.
include/exec include/graphics include/intuition include/libraries
There are selected parts of selected include files within these
directories, these were the bare minimum to allow me to get at the
operating system. The "Amiga ROM Kernel Reference Manual: Includes &
Autodocs" contains full listings of the contents of all the include
files.
examples
This directory contains some simple examples that have been ported to
NorthC, these sources should be looked at to get ideas from.
examples/hello
This is a bare directory to create the "hello.c" program in.
examples/CRender
This directory contains an example program, this program draws three
dimensional solid models, it also calls intuition and some graphics
routines.
examples/CRender/CRender
This is the NorthC rendering program, it displays three dimensional
models.
examples/CRender/CRender.doc examples/CRender/aif.doc
examples/CRender/render.doc examples/CRender/Makefile.doc
These file give some documentation for the CRender program, they go into
some details about three dimensional maths, and give you no help at all
about intuition and using Amiga graphics routines. Oh well at least you
can look in the source code.
examples/CRender/3d.h examples/CRender/aif.c examples/CRender/render.c
examples/CRender/req.c examples/CRender/requester.h
examples/CRender/menustrip.h
The source code to the CRender program, this includes the code to set
up the menu strip and a simple requester.
examples/CRender/Makefile examples/CRender/CRender.blink
The files for "make", each time you alter some of the source code you
should run "make", it will use these two files to bring the program up to
date.
examples/CRender/objects
This directory conatins some example objects for display.
examples/CRender/objects/ball.dat examples/CRender/objects/boat.dat
examples/CRender/objects/cube.dat examples/CRender/objects/oct.dat
examples/CRender/objects/tetra.dat examples/CRender/objects/try.dat
These files contain some example objects that have been created to
display with the CRender program. All the objects are rather simple
except the boat. To display an object, for example the ball, type the
commands
cd NorthC:examples/CRender
CRender objects/ball
the object will then be rotated on the screen.
examples/Unpack
This directory contains a quick 'C' program to call script files and
OS commands, used on the distribution disk to uncompress the NorthC
disk.
examples/Unpack/Unpack.c
The source for the "Unpack" program.
examples/Unpack/Makefile examples/Unpack/unpack.blink
The support for "make" for the "Unpack" program.
examples/Unpack/unpack
The "Unpack" program itself.